package com.lcf.app.kingbase8.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@Accessors(chain = true)
@TableName(value = "\"user\"") // user 是关键字，所以要特殊处理
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private Integer age;

    private LocalDate birthday;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String dataJson;

}
